<template>
	<view class="text-align-center">
		<image src="/static/img/icon_zhifuchenggong.png" class="wid-hig-280 mar-top-140" mode=""></image>
		<view class="mar-top-60 fontSize-32" v-if="type==1">下单成功，请及时去自提点提货哦~</view>
		<view class="mar-top-60 fontSize-32">支付成功</view>
		
		
		<view class="col-f fontSize-32 radius-40 see_btn" @click="goseecode" v-if="type==1">查看核销码</view>
		<view class="col-f fontSize-32 radius-40 see_btn" @click="goorder" v-if="type!=1">查看订单</view>
	</view>
</template>

<script lang="ts" setup>
import { onLoad } from '@dcloudio/uni-app';
import { ref } from 'vue';
onLoad((options)=>{
	type.value = options?.type
	order_id.value = options?.order_id
})
const type = ref()//1-自提 2-邮寄
const order_id = ref()//订单id
const goseecode =() =>{
	uni.navigateTo({
		url:'/indexpages/seecode/seecode?order_id='+order_id.value
	})
}
const goorder =() =>{
	uni.reLaunch({
		url:'/mypages/orderlist/orderlist'
	})
}
</script>

<style lang="scss">
.see_btn{
	width: 300rpx;
	height: 80rpx;
	background: linear-gradient(270deg, #bc8c1e 0%, #fdfdfd 100%);
	line-height: 80rpx;
	margin: 60rpx auto;
}

</style>
